<template>
	<view class="content">
		<image class="logo" src="/static/logo.png"></image>
		<view class="text-area">
			<text class="title">{{title}}</text>
		</view>
		<u-icon name="photo"></u-icon>
		<u-tag text="一丘之貉" mode="dark" />
		<u-tag text="沆瀣一气" mode="light" />
		<u-tag text="狼狈为奸" mode="plain" />
		<u-cell-group>
			<u-cell-item icon="setting-fill" title="vue3"></u-cell-item>
			<u-cell-item icon="integral-fill" title="会员等级" value="新版本"></u-cell-item>
		</u-cell-group>
		<!-- <view>
				<u-calendar v-model="show" :mode="mode"></u-calendar>
				<u-button @click="show = true">打开</u-button>
			</view> -->

		<view>
			<u-select v-model="show" :default-value="[idx]" :list="list" @confirm="confirm"></u-select>
			<u-button @click="show = true">打开{{list[idx].label}}</u-button>
		</view>
	</view>
</template>

<script setup>
	import {
		ref,
		reactive
	} from 'vue'
	let title = 'Hello'
	let show = ref(false)
	let idx = ref(0)
	let list = reactive([{
			value: '1',
			label: '江'
		},
		{
			value: '2',
			label: '湖'
		}
	])
	function confirm(e) {
		idx.value = e[0].value - 1
	}
	
</script>


<style>
	.content {
		display: flex;
		flex-direction: column;
		align-items: center;
		justify-content: center;
	}

	.logo {
		height: 200rpx;
		width: 200rpx;
		margin-top: 200rpx;
		margin-left: auto;
		margin-right: auto;
		margin-bottom: 50rpx;
	}

	.text-area {
		display: flex;
		justify-content: center;
	}

	.title {
		font-size: 36rpx;
		color: #8f8f94;
	}
</style>
